//
//  StepCell.m
//  OurMenu
//
//  Created by lanou3g on 15/10/12.
//  Copyright © 2015年 尹坤. All rights reserved.
//

#import "StepCell.h"

@implementation StepCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatView];
    }
    return self;
}

- (void)creatView
{
    self.stepImage = [[UIImageView alloc] init];
    [self.contentView addSubview:self.stepImage];
    
    self.stepWord = [[UILabel alloc] init];
    [self.contentView addSubview:self.stepWord];
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.stepImage.frame = CGRectMake(5, 5, self.contentView.frame.size.width / 3, self.contentView.frame.size.height - 10);
    //self.stepImage.backgroundColor = [UIColor greenColor];
    
    self.stepWord.frame = CGRectMake(self.contentView.frame.size.width/3 + 15, 10, self.contentView.frame.size.width/3*2 - 35, self.contentView.frame.size.height - 20);
    self.stepWord.numberOfLines = 0;
    self.stepWord.font = [UIFont systemFontOfSize:15];
    
    //self.stepWord.backgroundColor = [UIColor cyanColor];
    
    
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
